/*
 * @Author: chengsl
 * @Date: 2023-01-10 15:16:43
 * @LastEditors: chengsl
 * @LastEditTime: 2023-01-10 15:22:58
 * @Description: 飞线地图 widgetLineMap
 */
export default {
  title: {
    show: true,
    text: '',
    left: 'center',
    textStyle: { color: '#fff', fontSize: 20, fontWeight: 'normal' },
    subtext: '',
    subtextStyle: { color: '', fontWeight: 'normal', fontSize: 12 }
  },
  tooltip: {
    trigger: 'item',
    formatter: function(params) {
			if (params.seriesType === 'effectScatter') {
				return '线路：' + params.data.name + '' + params.data.value[2]
			} else if (params.seriesType === 'lines') {
				return params.data.fromName + '>' + params.data.toName + '<br />' + params.data.value
			} else {
				return params.name
			}
		}
  },
  legend: {
    show: true,
    orient: 'vertical',
    top: 'bottom',
    left: 'right',
    textStyle: { color: '#fff' },
    selectedMode: 'multiple'
  },
  geo: {
    map: 'china',
    label: { emphasis: { show: true, color: 'white' } },
    roam: true,
    itemStyle: {
      normal: { areaColor: '#0060FF', borderColor: '#3BD6FF' },
      emphasis: { areaColor: '#3BD6FF' }
    }
  },
  series: [
    {
      type: 'lines',
      zlevel: 1,
      effect: {
        show: false,
        period: 6,
        trailLength: 0.7,
        color: '#fff',
        symbolSize: 3
      },
      lineStyle: { normal: { color: '#a6c84c', width: 0, curveness: 0.2 } },
      data: [
        {
          fromName: '北京市',
          toName: '上海市',
          coords: [
            [116.4551, 40.2539],
            [121.4726, 31.2317]
          ],
          value: 295
        },
        {
          fromName: '北京市',
          toName: '广州市',
          coords: [
            [116.4551, 40.2539],
            [113.2644, 23.13]
          ],
          value: 90
        },
        {
          fromName: '北京市',
          toName: '大连市',
          coords: [
            [116.4551, 40.2539],
            [121.6147, 38.9139]
          ],
          value: 80
        },
        {
          fromName: '北京市',
          toName: '南宁市',
          coords: [
            [116.4551, 40.2539],
            [108.3664, 22.8177]
          ],
          value: 70
        },
        {
          fromName: '北京市',
          toName: '南昌市',
          coords: [
            [116.4551, 40.2539],
            [115.8579, 28.6829]
          ],
          value: 60
        },
        {
          fromName: '北京市',
          toName: '拉萨市',
          coords: [
            [116.4551, 40.2539],
            [91.1719, 29.6534]
          ],
          value: 50
        },
        {
          fromName: '北京市',
          toName: '长春市',
          coords: [
            [116.4551, 40.2539],
            [125.3236, 43.8169]
          ],
          value: 40
        },
        {
          fromName: '北京市',
          toName: '包头市',
          coords: [
            [116.4551, 40.2539],
            [109.9531, 40.6213]
          ],
          value: 30
        },
        {
          fromName: '北京市',
          toName: '重庆市',
          coords: [
            [116.4551, 40.2539],
            [108.1702, 29.2919]
          ],
          value: 20
        },
        {
          fromName: '北京市',
          toName: '常州市',
          coords: [
            [116.4551, 40.2539],
            [119.974, 31.8113]
          ],
          value: 10
        },
        {
          fromName: '上海市',
          toName: '包头市',
          coords: [
            [121.4726, 31.2317],
            [109.9531, 40.6213]
          ],
          value: 95
        },
        {
          fromName: '上海市',
          toName: '昆明市',
          coords: [
            [121.4726, 31.2317],
            [102.8336, 24.8814]
          ],
          value: 90
        },
        {
          fromName: '上海市',
          toName: '广州市',
          coords: [
            [121.4726, 31.2317],
            [113.2644, 23.13]
          ],
          value: 80
        },
        {
          fromName: '上海市',
          toName: '郑州市',
          coords: [
            [121.4726, 31.2317],
            [113.6253, 34.7463]
          ],
          value: 70
        },
        {
          fromName: '上海市',
          toName: '长春市',
          coords: [
            [121.4726, 31.2317],
            [125.3236, 43.8169]
          ],
          value: 60
        },
        {
          fromName: '上海市',
          toName: '重庆市',
          coords: [
            [121.4726, 31.2317],
            [108.1702, 29.2919]
          ],
          value: 50
        },
        {
          fromName: '上海市',
          toName: '长沙市',
          coords: [
            [121.4726, 31.2317],
            [112.9388, 28.2283]
          ],
          value: 40
        },
        {
          fromName: '上海市',
          toName: '北京市',
          coords: [
            [121.4726, 31.2317],
            [116.4551, 40.2539]
          ],
          value: 30
        },
        {
          fromName: '上海市',
          toName: '丹东市',
          coords: [
            [121.4726, 31.2317],
            [124.3544, 40.0006]
          ],
          value: 20
        },
        {
          fromName: '上海市',
          toName: '大连市',
          coords: [
            [121.4726, 31.2317],
            [121.6147, 38.9139]
          ],
          value: 10
        },
        {
          fromName: '广州市',
          toName: '福州市',
          coords: [
            [113.2644, 23.13],
            [119.2964, 26.0742]
          ],
          value: 95
        },
        {
          fromName: '广州市',
          toName: '太原市',
          coords: [
            [113.2644, 23.13],
            [112.5496, 37.8704]
          ],
          value: 90
        },
        {
          fromName: '广州市',
          toName: '长春市',
          coords: [
            [113.2644, 23.13],
            [125.3236, 43.8169]
          ],
          value: 80
        },
        {
          fromName: '广州市',
          toName: '重庆市',
          coords: [
            [113.2644, 23.13],
            [108.1702, 29.2919]
          ],
          value: 70
        },
        {
          fromName: '广州市',
          toName: '西安市',
          coords: [
            [113.2644, 23.13],
            [108.9396, 34.3432]
          ],
          value: 60
        },
        {
          fromName: '广州市',
          toName: '成都市',
          coords: [
            [113.2644, 23.13],
            [104.0663, 30.5729]
          ],
          value: 50
        },
        {
          fromName: '广州市',
          toName: '常州市',
          coords: [
            [113.2644, 23.13],
            [119.974, 31.8113]
          ],
          value: 40
        },
        {
          fromName: '广州市',
          toName: '北京市',
          coords: [
            [113.2644, 23.13],
            [116.4551, 40.2539]
          ],
          value: 30
        },
        {
          fromName: '广州市',
          toName: '北海市',
          coords: [
            [113.2644, 23.13],
            [109.1202, 21.4813]
          ],
          value: 20
        },
        {
          fromName: '广州市',
          toName: '海口市',
          coords: [
            [113.2644, 23.13],
            [110.1984, 20.0458]
          ],
          value: 10
        }
      ]
    },
    {
      type: 'lines',
      zlevel: 2,
      symbol: ['none', 'arrow'],
      symbolSize: 10,
      effect: {
        show: true,
        period: 4,
        trailLength: 0,
        symbol: 'arrow',
        symbolSize: 10,
        color: '#46bee9'
      },
      lineStyle: {
        normal: { color: '#ffa022', width: 2, opacity: 0.4, curveness: 0.2 }
      },
      data: [
        {
          fromName: '北京市',
          toName: '上海市',
          coords: [
            [116.4551, 40.2539],
            [121.4726, 31.2317]
          ],
          value: 295
        },
        {
          fromName: '北京市',
          toName: '广州市',
          coords: [
            [116.4551, 40.2539],
            [113.2644, 23.13]
          ],
          value: 90
        },
        {
          fromName: '北京市',
          toName: '大连市',
          coords: [
            [116.4551, 40.2539],
            [121.6147, 38.9139]
          ],
          value: 80
        },
        {
          fromName: '北京市',
          toName: '南宁市',
          coords: [
            [116.4551, 40.2539],
            [108.3664, 22.8177]
          ],
          value: 70
        },
        {
          fromName: '北京市',
          toName: '南昌市',
          coords: [
            [116.4551, 40.2539],
            [115.8579, 28.6829]
          ],
          value: 60
        },
        {
          fromName: '北京市',
          toName: '拉萨市',
          coords: [
            [116.4551, 40.2539],
            [91.1719, 29.6534]
          ],
          value: 50
        },
        {
          fromName: '北京市',
          toName: '长春市',
          coords: [
            [116.4551, 40.2539],
            [125.3236, 43.8169]
          ],
          value: 40
        },
        {
          fromName: '北京市',
          toName: '包头市',
          coords: [
            [116.4551, 40.2539],
            [109.9531, 40.6213]
          ],
          value: 30
        },
        {
          fromName: '北京市',
          toName: '重庆市',
          coords: [
            [116.4551, 40.2539],
            [108.1702, 29.2919]
          ],
          value: 20
        },
        {
          fromName: '北京市',
          toName: '常州市',
          coords: [
            [116.4551, 40.2539],
            [119.974, 31.8113]
          ],
          value: 10
        },
        {
          fromName: '上海市',
          toName: '包头市',
          coords: [
            [121.4726, 31.2317],
            [109.9531, 40.6213]
          ],
          value: 95
        },
        {
          fromName: '上海市',
          toName: '昆明市',
          coords: [
            [121.4726, 31.2317],
            [102.8336, 24.8814]
          ],
          value: 90
        },
        {
          fromName: '上海市',
          toName: '广州市',
          coords: [
            [121.4726, 31.2317],
            [113.2644, 23.13]
          ],
          value: 80
        },
        {
          fromName: '上海市',
          toName: '郑州市',
          coords: [
            [121.4726, 31.2317],
            [113.6253, 34.7463]
          ],
          value: 70
        },
        {
          fromName: '上海市',
          toName: '长春市',
          coords: [
            [121.4726, 31.2317],
            [125.3236, 43.8169]
          ],
          value: 60
        },
        {
          fromName: '上海市',
          toName: '重庆市',
          coords: [
            [121.4726, 31.2317],
            [108.1702, 29.2919]
          ],
          value: 50
        },
        {
          fromName: '上海市',
          toName: '长沙市',
          coords: [
            [121.4726, 31.2317],
            [112.9388, 28.2283]
          ],
          value: 40
        },
        {
          fromName: '上海市',
          toName: '北京市',
          coords: [
            [121.4726, 31.2317],
            [116.4551, 40.2539]
          ],
          value: 30
        },
        {
          fromName: '上海市',
          toName: '丹东市',
          coords: [
            [121.4726, 31.2317],
            [124.3544, 40.0006]
          ],
          value: 20
        },
        {
          fromName: '上海市',
          toName: '大连市',
          coords: [
            [121.4726, 31.2317],
            [121.6147, 38.9139]
          ],
          value: 10
        },
        {
          fromName: '广州市',
          toName: '福州市',
          coords: [
            [113.2644, 23.13],
            [119.2964, 26.0742]
          ],
          value: 95
        },
        {
          fromName: '广州市',
          toName: '太原市',
          coords: [
            [113.2644, 23.13],
            [112.5496, 37.8704]
          ],
          value: 90
        },
        {
          fromName: '广州市',
          toName: '长春市',
          coords: [
            [113.2644, 23.13],
            [125.3236, 43.8169]
          ],
          value: 80
        },
        {
          fromName: '广州市',
          toName: '重庆市',
          coords: [
            [113.2644, 23.13],
            [108.1702, 29.2919]
          ],
          value: 70
        },
        {
          fromName: '广州市',
          toName: '西安市',
          coords: [
            [113.2644, 23.13],
            [108.9396, 34.3432]
          ],
          value: 60
        },
        {
          fromName: '广州市',
          toName: '成都市',
          coords: [
            [113.2644, 23.13],
            [104.0663, 30.5729]
          ],
          value: 50
        },
        {
          fromName: '广州市',
          toName: '常州市',
          coords: [
            [113.2644, 23.13],
            [119.974, 31.8113]
          ],
          value: 40
        },
        {
          fromName: '广州市',
          toName: '北京市',
          coords: [
            [113.2644, 23.13],
            [116.4551, 40.2539]
          ],
          value: 30
        },
        {
          fromName: '广州市',
          toName: '北海市',
          coords: [
            [113.2644, 23.13],
            [109.1202, 21.4813]
          ],
          value: 20
        },
        {
          fromName: '广州市',
          toName: '海口市',
          coords: [
            [113.2644, 23.13],
            [110.1984, 20.0458]
          ],
          value: 10
        }
      ]
    },
    {
      type: 'effectScatter',
      coordinateSystem: 'geo',
      zlevel: 2,
      rippleEffect: { brushType: 'stroke' },
      label: {
        normal: {
          show: true,
          position: 'right',
          color: '#46bee9',
          fontSize: 12,
					formatter: '{b}',
          fontWeight: 'normal'
        }
      },
      symbolSize: 10,
      itemStyle: { normal: { color: '#46bee9' } },
      data: [
        { name: '北京市', value: [116.4551, 40.2539, 295] },
        { name: '北京市', value: [116.4551, 40.2539, 90] },
        { name: '北京市', value: [116.4551, 40.2539, 80] },
        { name: '北京市', value: [116.4551, 40.2539, 70] },
        { name: '北京市', value: [116.4551, 40.2539, 60] },
        { name: '北京市', value: [116.4551, 40.2539, 50] },
        { name: '北京市', value: [116.4551, 40.2539, 40] },
        { name: '北京市', value: [116.4551, 40.2539, 30] },
        { name: '北京市', value: [116.4551, 40.2539, 20] },
        { name: '北京市', value: [116.4551, 40.2539, 10] },
        { name: '上海市', value: [121.4726, 31.2317, 95] },
        { name: '上海市', value: [121.4726, 31.2317, 90] },
        { name: '上海市', value: [121.4726, 31.2317, 80] },
        { name: '上海市', value: [121.4726, 31.2317, 70] },
        { name: '上海市', value: [121.4726, 31.2317, 60] },
        { name: '上海市', value: [121.4726, 31.2317, 50] },
        { name: '上海市', value: [121.4726, 31.2317, 40] },
        { name: '上海市', value: [121.4726, 31.2317, 30] },
        { name: '上海市', value: [121.4726, 31.2317, 20] },
        { name: '上海市', value: [121.4726, 31.2317, 10] },
        { name: '广州市', value: [113.2644, 23.13, 95] },
        { name: '广州市', value: [113.2644, 23.13, 90] },
        { name: '广州市', value: [113.2644, 23.13, 80] },
        { name: '广州市', value: [113.2644, 23.13, 70] },
        { name: '广州市', value: [113.2644, 23.13, 60] },
        { name: '广州市', value: [113.2644, 23.13, 50] },
        { name: '广州市', value: [113.2644, 23.13, 40] },
        { name: '广州市', value: [113.2644, 23.13, 30] },
        { name: '广州市', value: [113.2644, 23.13, 20] },
        { name: '广州市', value: [113.2644, 23.13, 10] }
      ]
    },
    {
      type: 'effectScatter',
      coordinateSystem: 'geo',
      zlevel: 2,
      rippleEffect: { brushType: 'stroke' },
      label: {
        normal: {
          show: true,
          position: 'right',
          color: '#46bee9',
          fontSize: 12,
					formatter: '{b}',
          fontWeight: 'normal'
        }
      },
      symbolSize: 10,
      itemStyle: { normal: { color: '#46bee9' } },
      data: [
        { name: '上海市', value: [121.4726, 31.2317, 295] },
        { name: '广州市', value: [113.2644, 23.13, 90] },
        { name: '大连市', value: [121.6147, 38.9139, 80] },
        { name: '南宁市', value: [108.3664, 22.8177, 70] },
        { name: '南昌市', value: [115.8579, 28.6829, 60] },
        { name: '拉萨市', value: [91.1719, 29.6534, 50] },
        { name: '长春市', value: [125.3236, 43.8169, 40] },
        { name: '包头市', value: [109.9531, 40.6213, 30] },
        { name: '重庆市', value: [108.1702, 29.2919, 20] },
        { name: '常州市', value: [119.974, 31.8113, 10] },
        { name: '包头市', value: [109.9531, 40.6213, 95] },
        { name: '昆明市', value: [102.8336, 24.8814, 90] },
        { name: '广州市', value: [113.2644, 23.13, 80] },
        { name: '郑州市', value: [113.6253, 34.7463, 70] },
        { name: '长春市', value: [125.3236, 43.8169, 60] },
        { name: '重庆市', value: [108.1702, 29.2919, 50] },
        { name: '长沙市', value: [112.9388, 28.2283, 40] },
        { name: '北京市', value: [116.4551, 40.2539, 30] },
        { name: '丹东市', value: [124.3544, 40.0006, 20] },
        { name: '大连市', value: [121.6147, 38.9139, 10] },
        { name: '福州市', value: [119.2964, 26.0742, 95] },
        { name: '太原市', value: [112.5496, 37.8704, 90] },
        { name: '长春市', value: [125.3236, 43.8169, 80] },
        { name: '重庆市', value: [108.1702, 29.2919, 70] },
        { name: '西安市', value: [108.9396, 34.3432, 60] },
        { name: '成都市', value: [104.0663, 30.5729, 50] },
        { name: '常州市', value: [119.974, 31.8113, 40] },
        { name: '北京市', value: [116.4551, 40.2539, 30] },
        { name: '北海市', value: [109.1202, 21.4813, 20] },
        { name: '海口市', value: [110.1984, 20.0458, 10] }
      ]
    }
  ]
}
